package bean.config;

import bean.note.Bean;
import bean.BeanFactory;
import bean.note.FieldsBean;

public class BeanConfig {

    @Bean("a")
    public Ad bane(){
        return new Ad();
    }


    @Bean("b")
    public Object b(){

        return new Bd();
    }


    public static void main(String[] args) throws InstantiationException, IllegalAccessException {

        BeanFactory factory = new BeanFactory();

        factory.register(BeanConfig.class);

        Object a = factory.getBean(Bd.class);

        int b =0;

    }
}
